home *** CD-ROM | disk | FTP | other *** search
- Path: usenet.dun.nielsen.com!usenet
- From: millerrl@tvratings.com (Robert L. Miller)
- Newsgroups: comp.lang.c++
- Subject: Compiled Sizes different between compiles
- Date: Fri, 12 Jan 1996 14:17:11 GMT
- Organization: Nielsen Media Research, Dunedin Florida
- Message-ID: <4d5qji$e5o@surf.dun.nielsen.com>
- NNTP-Posting-Host: millerrl-pc.dun.nielsen.com
- X-Newsreader: Forte Free Agent 1.0.82
-
-
-
- Hopefully someone with SUN C++ compiler experience can help us with
- this problem. We are working on a distributed data collection project
- using XShell, C++ and Rogue Wave. After completing our first phase,
- we noticed something we perceive to be peculiar. If the same person
- compiles the same code one day versus the next, the executable
- generated can be as much as 1K different in size. Why is this
- significant to us? Besides the professional curiosity, our QA group
- feels that if even we can't get the same size executable from day to
- day that the code has variables that could lead to failure in
- deployment. We have gone through the investigations of environment,
- machine, OS patches etc. to determine what if anything could have
- changed from day to day without success. Our local SUN engineer had
- no idea as to why this was occuring, so I turned to this group.
-
- Any help would be greatly appreciated.
-
-
- Problem: Compiling the same source code and getting different
- executable size.
-
- Make: /opt/SUNWspro/ParallelMake/bin/make (but only setup for one
- machine)
- /usr/ccs/bin/make
-
-
- Compiler: CC 3.0.1 02 Mar 1995
-
- Options: Compiling with -g
-
- Linking: XShell 3.5 libraries
- Rogue Wave Tools.h++ 6.1
-
- System: sun4m
- sparc
- SunOS 5.4
- Generic_101945-27
-
-
-
-
- Examples of Executable Size:
-
- -rwxrwxrwx 1 dannemdl umi 135472 Dec 20 15:06 NameSpaceProxy*
-
- -rwxrwxrwx 1 dannemdl umi 134508 Jan 9 14:34 NameSpaceProxy2*
- -rwxrwxrwx 1 dannemdl umi 134508 Jan 9 14:50 NameSpaceProxy3*
-
- -rwxr-xr-x 1 dannemdl umi 135704 Jan 10 16:45 NameSpaceProxy4*
- -rwxr-xr-x 1 dannemdl umi 135704 Jan 10 16:59 NameSpaceProxy5*
-
- -rwxrwxrwx 1 dannemdl umi 135672 Jan 11 10:00 NameSpaceProxy6*
- -rwxrwxrwx 1 dannemdl umi 135704 Jan 11 10:45 NameSpaceProxy7*
- -rwxr-xr-x 1 dannemdl umi 135712 Jan 11 14:36 NameSpaceProxy8*
-
-
- Results of examining the NameSpaceProxy5, NameSpaceProxy6, and
- NameSpaceProxy7
- executable files.
-
- Using nm on 5 and 6, the indexes were identical until index 167. See
- below.
- After 172, the indexes continued to differ, but the differences were
- not
- examined closely.
-
- NameSpaceProxy5
-
- [167] | 188176| 0|FUNC |GLOB |0 |UNDEF |socket
- [168] | 188488| 0|FUNC |GLOB |0 |UNDEF
- |__0fPXpsInputServiceLInstantiatevT
- [169] | 228480| 1|OBJT |GLOB |0 |16
- |$XAboCbKkaD9wy9K.iostream_init
- [170] | 188524| 0|FUNC |GLOB |0 |UNDEF
- |__0fOunsafe_ostreamHdo_opfxv
- [171] | 187732| 0|FUNC |GLOB |0 |UNDEF |__0OnwUi
- [172] | 189004| 0|FUNC |GLOB |0 |UNDEF
- |__0fLXpsFrontEndFVOpenRC6NXpsConnection
-
-
- NameSpaceProxy6
-
- [167] | 228861| 1|OBJT |GLOB |0 |16
- |$XAboCbKkXS9wCUQ.XpsForceLinkIPCServiceInstance
- [168] | 188176| 0|FUNC |GLOB |0 |UNDEF |socket
- [169] | 188488| 0|FUNC |GLOB |0 |UNDEF
- |__0fPXpsInputServiceLInstantiatevT
- [170] | 188524| 0|FUNC |GLOB |0 |UNDEF
- |__0fOunsafe_ostreamHdo_opfxv
- [171] | 187732| 0|FUNC |GLOB |0 |UNDEF |__0OnwUi
- [172] | 189004| 0|FUNC |GLOB |0 |UNDEF
- |__0fLXpsFrontEndFVOpenRC6NXpsConnection
-
-
- The object files from NameSpaceProxy6 were saved, then NameSpaceProxy7
- was
- created. The executables are of different sizes, but the .o files
- were
- the same identical size.
-
- After NameSpaceProxy7 was created, a diff was done between it and
- NameSpaceProxy5, which has an identical executable size. diff said
- that there were differences in the executable files.
-
-
- NON-DEBUG Version
-
- A non-debug version was also created. The executables are shown
- below.
-
- Make: /opt/SUNWspro/ParallelMake/bin/make
-
- Compiler: CC
-
- Options: -R G_CFLAGS=-O CFLAGS='$(INCLUDE) -c -O' CDEBUGFLAGS=-O
-
-
- -rwxr-xr-x 1 dannemdl umi 99924 Dec 20 19:27
- NameSpaceProxy.nodebug*
- -rwxr-xr-x 1 dannemdl umi 99924 Jan 10 18:32
- NameSpaceProxy.nodebug2*
-
-
-
-